//
//  RecSecTableViewCell.m
//  A段项目
//
//  Created by dlios on 15/7/11.
//  Copyright (c) 2015年 dlios. All rights reserved.
//

#import "RecSecTableViewCell.h"
#define width ([UIScreen mainScreen].bounds.size.width - 30)

@implementation RecSecTableViewCell

- (void)dealloc
{
    [_title release];
    [_firShow release];
    [_secShow release];
    [_thiShow release];
    [_sec release];
    [super dealloc];
    
}

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:
            reuseIdentifier];
    if (self) {
        self.selectionStyle = UITableViewCellSelectionStyleNone;
        self.title = [[UILabel alloc] initWithFrame:CGRectMake(0, 5, width, 20)];
        self.title.numberOfLines = 0;
        self.firShow = [[UIImageView alloc] initWithFrame:CGRectMake(10, 30,  width / 3, 70)];
        self.secShow = [[UIImageView alloc] initWithFrame:CGRectMake(15 + width / 3, 30, width  / 3, 70)];
        self.thiShow = [[UIImageView alloc] initWithFrame:CGRectMake(20 + width / 3 * 2, 30, width / 3, 70)];
        self.sec = [[UILabel alloc] initWithFrame:CGRectMake(20, 105, 100, 20)];
        self.sec.font = [UIFont systemFontOfSize:12];
        UIImageView *ima = [[UIImageView alloc] initWithFrame:CGRectMake(width - 30, _sec.frame.origin.y, 20, 20)];
        ima.image = [UIImage imageNamed:@"14.png"];
        [self addSubview:ima];
        [ima release];
        self.commentcount = [[UILabel alloc] initWithFrame:CGRectMake(ima.frame.origin.x + 20, _sec.frame.origin.y, 50, 20)];
        _commentcount.textColor = [UIColor grayColor];
        _commentcount.font = [UIFont systemFontOfSize:12];
        
        
        [self addSubview:_title];
        [self addSubview:_firShow];
        [self addSubview:_secShow];
        [self addSubview:_thiShow];
        [self addSubview:_sec];
        [self addSubview:_commentcount];
        
        [_title release];
        [_firShow release];
        [_secShow release];
        [_thiShow release];
        [_sec release];
        [_commentcount release];
        
    }
    return self;
}


- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
